home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 575 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: cs.mu.OZ.AU!bounce-back
  2. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Is dynamic_cast safe?
  5. Date: 28 Feb 96 14:56:00 GMT
  6. Organization: Comp Sci, University of Melbourne
  7. Approved: fjh@cs.mu.oz.au
  8. Message-ID: <4h1dj3$b6b@mulga.cs.mu.OZ.AU>
  9. References: <AD58B8389668E1A9@sleipner.nts.mh.se>
  10. NNTP-Posting-Host: munta.cs.mu.oz.au
  11. X-Original-Date: 28 Feb 1996 11:16:51 GMT
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMTRtD+EDnX0m9pzZAQFQcgF/R8Z88XQfm8bKmDJcybWY3jJAu06l/lfj
  14.     0IPkWqBDgQLhjFHfZM56NKoSzip59wcW
  15.     =DzOV
  16. Originator: fjh@munta.cs.mu.OZ.AU
  17.  
  18. lars.farm@nts.mh.se (Lars Farm) writes:
  19.  
  20. >     5.2.6  Dynamic cast                           [expr.dynamic.cast]
  21. >   ...
  22. >   6 Otherwise,  v shall be a pointer to or an lvalue of a polymorphic type
  23. >   ...
  24. >What should happen when 'v' is not a pointer to or an lvalue of a
  25. >polymorphic type? return 0? crash? throw bad_cast? undefined?
  26.  
  27. If `v' is not a pointer to or an lvalue of a polymorphic type, then
  28. the program is ill-formed, and the implementation must issue a diagnostic.
  29.  
  30. --
  31. Any mail to me between Feb 25th and 27th may have gone to the bit bucket
  32. (#&$^@$!# mail software silently ignored disk full error).  Please resend.
  33. (comp.std.c++ articles were not affected, so no need to resend those.)
  34. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  35. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  36. ---
  37. [ To submit articles: try just posting with your news-reader.
  38.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  39.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  40.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  41.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  42. ]
  43.